package com.fizz.redpacket.mapper.primary;

import com.fizz.redpacket.entities.RedPacketConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RedPacketConfigMapper {
  RedPacketConfig getValidUserPacketConfig();
  
  int updateMinMoney(double paramDouble);
  
  int updateMinMoneyById(@Param("money") double paramDouble, @Param("id") int paramInt);
  
  int updateMaxMoney(double paramDouble);
  
  int updateMaxMoneyById(@Param("money") double paramDouble, @Param("id") int paramInt);
  
  int updateMinCountById(@Param("min") int paramInt1, @Param("id") int paramInt2);
  
  int updateMaxCountById(@Param("max") int paramInt1, @Param("id") int paramInt2);
  
  int insertConfig(RedPacketConfig paramRedPacketConfig);
  
  int deleteConfigById(int paramInt);
}
